package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * @Author 祖铭泽
 * @date 2022/01/06
 * @description 轮播图pojo
 */
public class JsCarousel {
    private Integer carouselId;//主键id
    private String imgAddress;//图片url路径
    private String imgTitle;//图片标题
    private String imgType;//图片类型
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String startDate;//开始时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String expireDate;//到期时间
    private Integer display;//是否显示，2显示，3不显示
    private Integer serialNumber;//序号
    private String describe;//描述
    private String createId;//创建人
    private String remarks;//备注
    private String account;//创建人姓名
    private String videoAddress;//视频路径
    private String updateDate;//修改时间
    private String oldImgAddress;//旧的图片路径
    private String oldVideoAddress;//旧的视频路径

    public Integer getCarouselId() {
        return carouselId;
    }

    public void setCarouselId(Integer carouselId) {
        this.carouselId = carouselId;
    }

    public String getImgAddress() {
        return imgAddress;
    }

    public void setImgAddress(String imgAddress) {
        this.imgAddress = imgAddress;
    }

    public String getImgTitle() {
        return imgTitle;
    }

    public void setImgTitle(String imgTitle) {
        this.imgTitle = imgTitle;
    }

    public String getImgType() {
        return imgType;
    }

    public void setImgType(String imgType) {
        this.imgType = imgType;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }

    public Integer getDisplay() {
        return display;
    }

    public void setDisplay(Integer display) {
        this.display = display;
    }

    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getVideoAddress() {
        return videoAddress;
    }

    public void setVideoAddress(String videoAddress) {
        this.videoAddress = videoAddress;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getOldImgAddress() {
        return oldImgAddress;
    }

    public void setOldImgAddress(String oldImgAddress) {
        this.oldImgAddress = oldImgAddress;
    }

    public String getOldVideoAddress() {
        return oldVideoAddress;
    }

    public void setOldVideoAddress(String oldVideoAddress) {
        this.oldVideoAddress = oldVideoAddress;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        JsCarousel that = (JsCarousel) o;

        if (carouselId != null ? !carouselId.equals(that.carouselId) : that.carouselId != null) return false;
        if (imgAddress != null ? !imgAddress.equals(that.imgAddress) : that.imgAddress != null) return false;
        if (imgTitle != null ? !imgTitle.equals(that.imgTitle) : that.imgTitle != null) return false;
        if (imgType != null ? !imgType.equals(that.imgType) : that.imgType != null) return false;
        if (startDate != null ? !startDate.equals(that.startDate) : that.startDate != null) return false;
        if (expireDate != null ? !expireDate.equals(that.expireDate) : that.expireDate != null) return false;
        if (display != null ? !display.equals(that.display) : that.display != null) return false;
        if (serialNumber != null ? !serialNumber.equals(that.serialNumber) : that.serialNumber != null) return false;
        if (describe != null ? !describe.equals(that.describe) : that.describe != null) return false;
        if (createId != null ? !createId.equals(that.createId) : that.createId != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (account != null ? !account.equals(that.account) : that.account != null) return false;
        if (videoAddress != null ? !videoAddress.equals(that.videoAddress) : that.videoAddress != null) return false;
        if (updateDate != null ? !updateDate.equals(that.updateDate) : that.updateDate != null) return false;
        if (oldImgAddress != null ? !oldImgAddress.equals(that.oldImgAddress) : that.oldImgAddress != null)
            return false;
        return oldVideoAddress != null ? oldVideoAddress.equals(that.oldVideoAddress) : that.oldVideoAddress == null;

    }

    @Override
    public int hashCode() {
        int result = carouselId != null ? carouselId.hashCode() : 0;
        result = 31 * result + (imgAddress != null ? imgAddress.hashCode() : 0);
        result = 31 * result + (imgTitle != null ? imgTitle.hashCode() : 0);
        result = 31 * result + (imgType != null ? imgType.hashCode() : 0);
        result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
        result = 31 * result + (expireDate != null ? expireDate.hashCode() : 0);
        result = 31 * result + (display != null ? display.hashCode() : 0);
        result = 31 * result + (serialNumber != null ? serialNumber.hashCode() : 0);
        result = 31 * result + (describe != null ? describe.hashCode() : 0);
        result = 31 * result + (createId != null ? createId.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (account != null ? account.hashCode() : 0);
        result = 31 * result + (videoAddress != null ? videoAddress.hashCode() : 0);
        result = 31 * result + (updateDate != null ? updateDate.hashCode() : 0);
        result = 31 * result + (oldImgAddress != null ? oldImgAddress.hashCode() : 0);
        result = 31 * result + (oldVideoAddress != null ? oldVideoAddress.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "JsCarousel{" +
                "carouselId=" + carouselId +
                ", imgAddress='" + imgAddress + '\'' +
                ", imgTitle='" + imgTitle + '\'' +
                ", imgType='" + imgType + '\'' +
                ", startDate='" + startDate + '\'' +
                ", expireDate='" + expireDate + '\'' +
                ", display=" + display +
                ", serialNumber=" + serialNumber +
                ", describe='" + describe + '\'' +
                ", createId='" + createId + '\'' +
                ", remarks='" + remarks + '\'' +
                ", account='" + account + '\'' +
                ", videoAddress='" + videoAddress + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", oldImgAddress='" + oldImgAddress + '\'' +
                ", oldVideoAddress='" + oldVideoAddress + '\'' +
                '}';
    }
}
